Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Serena MCP server container build to use a newer Go toolchain and gopls version for Go language support inside the image.
Changes:
- Bump
goplsbuilder stage base image fromgolang:1.24-alpinetogolang:1.25-alpine. - Update pinned
goplsversion fromv0.17.1tov0.21.0.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| FROM golang:1.25-alpine AS gopls-builder | ||
| # Pin to gopls v0.21.0 which is compatible with Go 1.25 | ||
| RUN go install golang.org/x/tools/gopls@v0.21.0 |
There was a problem hiding this comment.
The builder stage is pinned to Go 1.25, but the final image installs golang-go from Debian without pinning a matching Go toolchain version. Since gopls shells out to the go toolchain for analysis/build operations, a mismatch here can cause unexpected behavior when analyzing modules with go 1.25.0 (see go.mod). Consider ensuring the final image provides the same Go version (e.g., copy /usr/local/go from a Go 1.25 stage or install a version-pinned Go toolchain), rather than relying on the distro package version.
No description provided.